package com.diankangwo.factory.service.impl;

import com.diankangwo.factory.dao.TdPortSettingMapper;
import com.diankangwo.factory.entity.TdPortSetting;
import com.diankangwo.factory.service.TdPortSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("TdPortSettingService")
public class TdPortSettingServiceImpl implements TdPortSettingService{

    @Autowired
    private TdPortSettingMapper tdPortSettingMapper;


    @Override
    @Transactional
    public int deleteByPrimaryKey(Integer id) {
        return tdPortSettingMapper.deleteByPrimaryKey(id);
    }

    @Override
    @Transactional
    public int insert(TdPortSetting record) {
        return tdPortSettingMapper.insert(record);
    }

    @Override
    @Transactional
    public int insertSelective(TdPortSetting record) {
        return tdPortSettingMapper.insertSelective(record);
    }

    @Override
    public TdPortSetting selectByPrimaryKey(Integer id) {
        return tdPortSettingMapper.selectByPrimaryKey(id);
    }

    @Override
    @Transactional
    public int updateByPrimaryKeySelective(TdPortSetting record) {
        return tdPortSettingMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    @Transactional
    public int updateByPrimaryKey(TdPortSetting record) {
        return tdPortSettingMapper.updateByPrimaryKey(record);
    }
}
